<?php 
    session_start();
    $form=$_SESSION["form"];
    if(!isset($form)){
        $form["usr"]="default";
        $form["pass"]="default";
        $form["error"]=false;
    }
    $_SESSION["form"]=$form;
   
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Incidencias urbanísticas</title>
    <link href="estilo_acceso.css" rel="stylesheet" type="text/css">
    <link href="estructura.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="contenedor">
    <form id="form" name="form" method="post" action="../login/login.php">
    <input id="tipo" name="tipo" type="hidden"  value="administrador"></input>
    <div id="body1">
        <div class="panel1">
            <div class="body2" >
              <div id="usu2" class="cont"><h3>Acceso de los administradores</h3></div>  
              <div id="usu3" class="cont"><div >Usuario&nbsp;&nbsp;</div><input id="usr" name="usr" type="text"  value="admin"></input></div>
              <div id="usu4" class="cont"><div class="cont">Clave&nbsp;&nbsp;</div><input id="pass" name="pass" type="password"  value="admin"></input></div>
        
              <?php 
              
                $error="nerror";
                if($form["error"])
                  $error="error";
              
              ?> 
              <div id="usu5" class="cont"><texto class="<?php echo($error);?>">Usuario o contraseña incorrecto</texto></div>
              <div id="usu6" class="cont"><input class="boton" type="submit"  value="Entrar"></input><br>&nbsp;</div>
          </div>
        </div>
    
    </div>
    </div>
    </body>
</html>
